package com.jacobson.huobi.api

import com.alibaba.fastjson.JSONObject
import com.jacobson.huobi.common.HttpAuthentication
import com.jacobson.huobi.entities.response.AlarmRecordPageResponse
import com.jacobson.huobi.entities.response.CommonResponse
import com.jacobson.huobi.entities.vo.KycAuthResVo
import io.reactivex.Observable
import okhttp3.MultipartBody
import retrofit2.http.*


interface KycAuthApi {


    @POST("kyc/submit_review")
    @Headers(HttpAuthentication.HEADER)
    fun submitKycAuth(
        @Body kycAuthResVo: KycAuthResVo
    ): Observable<CommonResponse<JSONObject>>

    @POST("kyc/detail")
    @Headers(HttpAuthentication.HEADER)
    fun loadKycDetail(
        @Query("width") width: Int = 150
    ): Observable<CommonResponse<JSONObject>>

    @Multipart
    @POST("kyc/upload")
    @Headers(HttpAuthentication.HEADER)
    fun kycUpload(
        @Part file: MultipartBody.Part,
        @Query("side") side: String,
        @Query("width") width: Int = 150
    ): Observable<CommonResponse<String>>
}